package com.jhd.fuzhou.service;


import com.jhd.fuzhou.vo.JsonForResult;

import java.util.Map;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

public interface DocumentService {
    //日常监督记录列表 pageIndex=1&pageSize=10&supervisedType=0  unitName: dd
    @GET("supervise/supervisionInspection/getSupervisionInspectioList")
    Call<JsonForResult> getSupervisionInspectioList(@Header("Authorization") String token, @QueryMap Map<String, Object> params);
    //双随机记录列表 pageIndex: 1   pageSize: 10  unitName: dd
    @GET("supervise/supervisionInspection/getDoubleRandomManagementList")
    Call<JsonForResult> getDoubleRandomManagementList(@Header("Authorization") String token, @QueryMap Map<String, Object> params);
    //专项监督记录列表 pageIndex: 1   pageSize: 10  unitName: dd
    @GET("supervise/supervisionInspection/getSuperviseInspectionSpecialList")
    Call<JsonForResult> getSuperviseInspectionSpecialList(@Header("Authorization") String token, @QueryMap Map<String, Object> params);
    //量化评级记录列表 pageIndex: 1, pageSize: 10, superviseOrgId: "11ebdafc9f0538dead0a80bfd7c3a8ef", deptName: "rr"
    @POST("supervise/gradeReportMst/getGradeReportMstList")
    Call<JsonForResult> getGradeReportMstList(@Header("Authorization") String token,@Body RequestBody requestBody);
    //根据inspectionId获取SupervisionInspection
    @GET("supervise/supervisionInspection/getSupervisionInspectioById")
    Call<JsonForResult> getSupervisionInspectioById(@Header("Authorization") String token, @QueryMap Map<String, String> params);
    @GET("supervise/supervisionInspection/getSupervisionInspectionDetailById")
    Call<JsonForResult> getDoubleRandomInspectionDetailById(@Header("Authorization") String token, @QueryMap Map<String, String> params);
    /*获取监督任务*/
    @GET("supervise/supervisionInspection/getSupervisionInspectionSpecialDetailById")
    Call<JsonForResult> getSupervisionInspectionSpecialDetailById(@Header("Authorization") String token, @QueryMap Map<String, String> params);
}
